package com.etlmaster.executor.trans.core;

import java.io.Serializable;


/**
 * @author Larry
 * @copyright Larry@etlMaster
 * @since 2017-09-10
 */
public class FieldEntry implements Serializable{
	private String fieldName;
	private String fieldTable;
	private String targetTable;
	private String targetFieldName;
	private boolean isDelete=false;
	public FieldEntry(String fieldTable,String name){
		this.setFieldName(name);
		this.setFieldTable(fieldTable);
	}
	public FieldEntry(String fieldTable,String name,String targetTable,String targetFieldName){
		this.setFieldName(name);
		this.setFieldTable(fieldTable);
		this.setTargetTable(targetTable);
		this.setTargetFieldName(targetFieldName);
	}
	public String getFieldName() {
		return fieldName.toUpperCase();
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName.toUpperCase();
	}
	public String getFieldTable() {
		return fieldTable.toUpperCase();
	}
	public void setFieldTable(String fieldTable) {
		this.fieldTable = fieldTable.toUpperCase();
	}
	public String getTargetTable() {
		return targetTable;
	}
	public void setTargetTable(String targetTable) {
		this.targetTable = targetTable;
	}
	public String getTargetFieldName() {
		return targetFieldName;
	}
	public void setTargetFieldName(String targetFieldName) {
		this.targetFieldName = targetFieldName;
	}
	public boolean isDelete() {
		return isDelete;
	}
	public void setDelete(boolean isDelete) {
		this.isDelete = isDelete;
	}

}
